﻿namespace Digitalmes.Infrastructure.Common.Http;

/// <summary>
/// API 响应的数据。
/// </summary>
public class ApiResult
{
    /// <summary>
    /// 状态码
    /// </summary>
    public int Code { get; init; }

    /// <summary>
    /// 消息
    /// </summary>
    public string? Message { get; init; }
}

/// <summary>
/// API 响应的数据。
/// </summary>
public sealed class ApiResult<T> : ApiResult
{
    /// <summary>
    /// 具体数据
    /// </summary>
    public T? Data { get; set; }
}
